<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
{include file="public/js_ueditor" /}
<link href="{:config('template.skin')}/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
<div class="modal-header">
    <span class="modal-title"><img src="{$userRs.avatar}" width="20" height="20" class="img-circle mr-1" onerror="this.src='{:config('template.skin')}/img/avatar.png'">{$userRs.nickname}</span>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
    <form name="form_edit" id="form_edit" method="post" action="{:url('/feedback/edit',['lang'=>$lang])}">
        <input type="hidden" name="signid" value="1" />
        <input type="hidden" name="parentid" value="{$rs.id}" />
        <input type="hidden" name="userid" value="{:session('userid')}" />
        <input type="hidden" name="lang" value="{$rs.lang}" />
        <div class="row">
            {volist name="replylist" id="repRs"}
                <div class="col-md-12 mb-2">
                    <div class="w-100">
                        <img src="{$userRs.avatar}" width="20" height="20" class="img-circle mr-1" onerror="this.src='{:config('template.skin')}/img/avatar.png'">[ {$repRs.nickname} ] {$repRs.addtime|date='Y-m-d H:i'} {:lang('v_reply')}：
                    </div>
                    <div class="w-100"><div class="pl-4">{$repRs.content|raw}</div></div>
                    <hr class="w-100 my-2 clearfix">
                </div>
            {/volist}
            <div class="col-md-12 mb-2">
                <div class="w-100">{:lang('v_reply')}：{$rs.content|raw}</div>
            </div>
            <div class="col-md-12 mb-2">
                <textarea name="content" id="content1a" rows="5" style="width:100%; height:80px;"></textarea>
            </div>
            <div class="col-md-12 mb-2">
                <div class="input-group date form_datetime">
                    <div class="input-group-prepend">
                        <span class="input-group-text h7">{:lang('v_reply')} {:lang('v_date')}</span>
                    </div>
                    <input type="text" class="form-control" name="addtime" readonly="readonly" value="{empty name="rs.addtime"}{php}echo date('Y-m-d H:i:s',time());{/php}{else /}{$rs.addtime|date='Y-m-d H:i:s'}{/empty}">
                    <div class="input-group-append">
                        <span class="input-group-text date-set"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="col-md-12 mt-2 text-center">
                {if is_file(app()->getRootPath().'.env')}
                    <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                {else /}
                    <button type="button" class="do_ajax btn btn-info mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/feedback/edit',['lang'=>$lang])}','{:url('/feedback/index',['lang'=>$lang,'signid'=>3])}');"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')} {:lang('v_reply')}</button>
                {/if}
                <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times-circle"></i> {:lang('v_close')}</button>
            </div>
        </div>
    </form>
</div>
{include file="public/js_datetime_picker" /}
{include file="public/js_rich_text_small" /}